/**
 * ./src/directive/sizeDirective.ts
 * 注册单个指令
 */
import { Directive, DirectiveBinding } from "vue";
export default <Directive>{
    mounted(el: HTMLElement, binding: DirectiveBinding) {
        const { value } = binding;
        el.addEventListener("click", () => {
            console.log("添加事件监听成功");
            if (value) {
                el.style.fontSize = value + "px";
            }
        });
    },
};
